import React from 'react'
import viewRouterUtils from '@/ui/antd/service/router/utils/viewRouterUtils'
import ViewRouteDto from '@/ui/antd/service/router/types/model/dto/ViewRouteDto'

// 模块
const routes = [
	{
		path: '/application/list',
		title: '应用管理',
		icon: 'fa fa-desktop',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/application/main/list/List'))),
	},
	{
		path: '/application/oauth2/list',
		icon: 'fa fa-shield-check',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/application/oauth2/client/list/List'))),
		title: '应用客户端管理',
	},
	{
		path: '/application/config/list',
		title: '应用配置管理',
		icon: 'fa fa-shield',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/application/config/list/List'))),
	},
] as ViewRouteDto[]

export default routes
